package com.lframework.xingyun.basedata.vo.member;

import javax.validation.constraints.NotBlank;

import com.lframework.starter.web.core.vo.BaseVo;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class CreateMemberLevelDetailVo implements BaseVo, Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id", required = true)
    @NotBlank(message = "请输入会员id！")
    @Length(message = "会员id最多允许32个字符！")
    private String memberId;

    /**
     * 会员等级
     */
    @ApiModelProperty(value = "会员等级", required = true)
    @NotBlank(message = "请输入会员等级！")
    @Length(message = "会员等级最多允许32个字符！")
    private String levelId;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "开始时间")
    private Date beginDate;
}

